<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="fragments/_header :: _head('添加组织结构')"></head>
<body>
<div class="ok-body">
    <!--form表单-->
    <form class="layui-form layui-form-pane ok-form">
        <div class="layui-form-item">
            <label class="layui-form-label">上级部门</label>
            <div class="layui-input-block">
                <input id="pid" type="text" name="pid" autocomplete="off" class="layui-hide" th:value="${pid}">
                <input id="pName" name="pName" th:value="${pName}" class="layui-input" type="text" lay-filter="deptTree" readonly="true">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">组织结构名</label>
            <div class="layui-input-block">
                <input type="text" name="name" placeholder="请输入组织结构名" autocomplete="off" class="layui-input" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" name="orderNum" placeholder="请输入排序值" autocomplete="off" class="layui-input" lay-verify="required|number">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="add">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<!--js逻辑-->
<div th:include="fragments/_footer :: _footer"></div>
<script src="/js/system/dept/add.js"></script>
</body>
</html>